//
//  CCWeakReference.m
//  MXApp
//
//  Created by CC on 2017/9/7.
//  Copyright © 2017年 Shanghai YingXiang Network Technology Co., Ltd. All rights reserved.
//

#import "CCWeakReference.h"

@implementation CCWeakReference

- (instancetype)initWithObject:(id)object {
  self = [super init];
  if (self) {
    self->_object = object;
  }
  return self;
}

+ (CCWeakReference*)weakReferenceWithObject:(id)object {
  return [[self alloc] initWithObject:object];
}

@end
